import request from '@/config/axios'

// 分页
export const getPage = async (params: any) => {
  return await request.get({ url: `/promotion/gift/scan/config/page`, params })
}

// 详情
export const getDetailById = async (id: number | string) => {
  return await request.get({ url: `/promotion/gift/scan/config/get/` + id })
}

// 创建
export const create = async (data: any) => {
  return await request.post({ url: `/promotion/gift/scan/config/create`, data })
}

// 修改
export const updateById = async (data: any) => {
  return await request.post({ url: `/promotion/gift/scan/config/update`, data })
}

// 删除
export const deleteById = async (id: number | string) => {
  return await request.post({ url: `/promotion/gift/scan/config/delete/` + id })
}
